﻿#pragma once
#ifndef RGSMAPTOOLIDENTIFYACTION_H
#define RGSMAPTOOLIDENTIFYACTION_H
#include <qmath.h>
#include"Riskgis.h"
#include "qgsmaptoolidentify.h"
#include "rgsmaptoolselectionhandler.h"
#include<QDebug>
class QgsMapCanvas;
class Rgsmaptoolidentifyaction:public QgsMapToolIdentify
{
    Q_OBJECT
public:
    Rgsmaptoolidentifyaction(QgsMapCanvas *canvas);
    ~Rgsmaptoolidentifyaction();


    //! Overridden mouse move event
    void canvasMoveEvent( QgsMapMouseEvent *e ) override;

    //! Overridden mouse press event
    void canvasPressEvent( QgsMapMouseEvent *e ) override;

    //! Overridden mouse release event
    void canvasReleaseEvent( QgsMapMouseEvent *e ) override;


public slots:
    void identifyFromGeometry();


protected:
    RgsMapToolSelectionHandler* mSelectionHandler;
};

#endif // RGSMAPTOOLIDENTIFYACTION_H
